import request from '@/utils/request'

// 查询用户班级列表
export function listUserclass(query) {
  return request({
    url: '/system/userclass/list',
    method: 'get',
    params: query
  })
}

// 查询用户班级详细
export function getUserclass(id) {
  return request({
    url: '/system/userclass/' + id,
    method: 'get'
  })
}

// 新增用户班级
export function addUserclass(data) {
  return request({
    url: '/system/userclass',
    method: 'post',
    data: data
  })
}

// 修改用户班级
export function updateUserclass(data) {
  return request({
    url: '/system/userclass',
    method: 'put',
    data: data
  })
}

// 删除用户班级
export function delUserclass(id) {
  return request({
    url: '/system/userclass/' + id,
    method: 'delete'
  })
}
